From: Jasper St. Pierre Date: Fri, 2 Aug 2013 02:48:33 +0000 (-0400) Subject: messageTray: Remove some dead code X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3807 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=158ca9746c7fd9f755a7e47445003f0ae0c6746d;p=gnome-shell.git messageTray: Remove some dead code notificationClosed is never set. --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index bf333ec19..41ae340d6 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1709,7 +1709,6 @@ const MessageTray = new Lang.Class({ this._notificationHovered = false; this._keyboardVisible = false; - this._notificationClosed = false; this._notificationState = State.HIDDEN; this._notificationTimeoutId = 0; this._notificationExpandedId = 0; @@ -2286,7 +2285,7 @@ const MessageTray = new Lang.Class({ let notificationLockedOut = !hasNotifications && this._notification; let notificationMustClose = (this._notificationRemoved || notificationLockedOut || (notificationExpired && this._userActiveWhileNotificationShown) || - this._notificationClosed || this._traySummoned); + this._traySummoned); let canShowNotification = notificationsPending && this._trayState == State.HIDDEN && !this._traySummoned; if (this._notificationState == State.HIDDEN) {